import * as Api from '@/api/class'

const course = {
  state: {
  },
  mutations: {
  },
  actions: {
        SaveClass ({ commit }, data) {
      return new Promise((resolve, reject) => {
        Api.SaveClass(data)
          .then(res => {
            resolve(res.data)
          })
          .catch(err => {
            reject(err)
          })
      })
    },
  }
}